package com.market.dao;

import java.util.List;

import com.market.domain.Picture;
import com.market.domain.Product;
import com.market.domain.Supplier;

public interface SupplierDao extends GenericDao<Supplier, Long> {
	/**
	 * This method load all product supply by this supplier.
	 * @param supplier
	 * @return
	 */
	public List<Product> findProducts(Supplier supplier);
	/**
	 * This method load all picture associated to this supplier.
	 * @param supplier
	 * @return
	 */
	public List<Picture> findPictures(Supplier supplier);
}
